package com.ecnu.codelearn.conf;

import javax.servlet.http.HttpServletRequest;

/**
 * @Author: 曹培胜
 * @Date: 2021/09/05/16:33
 * @Description:
 */
public interface TokenService {

    /**
     * 创建token
     *
     * @return
     */
    String createToken();

    /**
     * 检验token
     *
     * @param request
     * @return
     * @throws Exception
     */
    boolean checkToken(HttpServletRequest request) throws Exception;

}
